package com.kimari.demo01;

/**
 * 代理
 *
 * @author Reimu
 */
public class Proxy implements Rent{

    private Host host;

    public Proxy(Host host) {
        this.host = host;
    }

    public Proxy() {
    }

    public void seeHost() {
        System.out.println("带你看房子");
    }

    public void fare() {
        System.out.println("收中介费");
    }

    @Override
    public void rent() {
        seeHost();
        fare();
        host.rent();
    }
}
